<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" import="java.util.*,java.sql.*" %>
<%@ page import="com.nxcy.utils.DBUtil" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>
</head>
<body>
<%
    long start = System.currentTimeMillis();
    DBUtil db = new DBUtil();
    ResultSet rs =
            db.query("select code,name from sys_xzqh");
    while (rs.next()) {
        out.print(rs.getString("code") + ":"
                + rs.getString("name") + "<br>");
    }
    db.close();
    long end = System.currentTimeMillis();
    out.print("直接从数据库中取数据：" + (end - start));
%>

</body>
</html>